package com.aaa.common.util;

import java.io.IOException;
import java.util.Properties;

/**
 * @author ：杨
 * @date ：Created in 2020/7/25 15:59
 * @description：
 * @modified By：
 * @version:
 */
public class LoadPropertyUtil {
    public static Properties LoadPropertyByPath(String path){
        Properties properties = new Properties();
        try {
            properties.load(LoadPropertyUtil.class.getResourceAsStream("/"+path));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties;
    }
}
